<?php
if ( ! defined('BASEPATH')) exit('el acceso directo a esta página no esta permitido.');
class download  extends ci_controller{
    function __construct()
    {
        parent::__construct();
        $this->load->helper('download');
    }
        
    function index(){
        $data = file_get_contents(base_url()."/uploads/posmobile.pdf");
        $name = 'POSMobile.pdf';
        force_download($name, $data); 
    }
}

/* end of file download.php */
/* location: ./application/controllers/download.php */